package sgs.skin;

import sgs.common.utils.Config;
import sgs.common.utils.DataCache;
import sgs.common.utils.VersionEnum;

public class SkinMain {
    private static String DIR_SRC = Config.INSTANCE.getProperty("dir.src");
    private static String DIR_TARGET = Config.INSTANCE.getProperty("dir.target");
    private static final int CONCURRENCY_LEVEL = Runtime.getRuntime().availableProcessors(); // 并发级别设置为处理器数量

    public static void main(String[] args) {
        try {
            DataCache.init();
            SkinFileProcessor.reorganizeFiles(DIR_SRC, DIR_TARGET);
//            new SkinDownloader().downloadSkin();
//            new SkinDownloader().downloadSkinForVersion(VersionEnum.OL, 0, 0, 0, 15);
//            new SkinDownloader().downloadMaxSkin();
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}
